package my.graphics.sample;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Graphics extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.main);
       // ShapeDrawable shape = new ShapeDrawable(R.drawable.circle);
        //View main = (FrameLayout) findViewById(R.id.main_view);
       // main.addView(new Circle(this,100,100,60));
        View view2 = findViewById(R.id.circle_solution2);
        view2.setOnClickListener(this);
        
        View view3 = findViewById(R.id.circle_solution3);
        view3.setOnClickListener(this);
        
    }
    
    public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.circle_solution2:
			Intent i = new Intent(this, Circle_Solution2_View.class);
			startActivity(i);
			break;
		
    	case R.id.circle_solution3:
    		Intent j = new Intent(this, Circle_Solution3_View.class);
    		startActivity(j);
    		break;
		}
	}
}